package com.million.artservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文章
 * </p>
 *
 * @author 十麓
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("edu_article")
@ApiModel(value = "Article对象", description = "文章")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文章ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "文章内容ID")
    private String articleBodyId;

    @ApiModelProperty(value = "老师ID")
    private String teacherId;

    @ApiModelProperty(value = "文章专业ID")
    private String subjectId;

    @ApiModelProperty(value = "文章专业父级ID")
    private String subjectParentId;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "浏览数量")
    private Long viewCount;

    @ApiModelProperty(value = "评论数量")
    private Integer commentCounts;

    @ApiModelProperty(value = "文章封面图片路径")
    private String cover;

    @ApiModelProperty(value = "是否置顶，0不置顶，1置顶")
    private Integer weight;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
